window.onload = setTimeout(fn,4000);
function fn(){
    window.open("index.html","_self");
}